<template>
  <Demo @Hello="showHello" msg="你好" school="清华" >
    <!-- <span>nihao </span> -->
    <template v-slot:qwe>
      <span>nihao </span>
    </template>
  </Demo>
</template>

<script>
import Demo from "./components/Demo";
export default {
  name: "App",
  components: {
    Demo
  },
  setup(){
    function showHello(name){
      console.log("你好")
      alert(`你好!${name}`)
    }
    return {
      showHello
    }
  }

};
</script>

<style>
</style>